<%@ page pageEncoding="UTF-8"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="isperp" uri="/WEB-INF/tlds/isperp.tld"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>


<div style="padding:0;" class="content tabbed">
	<div id="wiz_create">
		<div class="box no-border">
			<div class="header">
				<h2 style="padding:5px 20px;color:red">新建重要事件</h2>

			</div>

			<form:form commandName="model" cssClass="validate" id="incidentForm"
				action="incident/incident/save">
				<form:hidden path="id" />
				<input type='hidden' name="areMajor" value="1">
				<input type="hidden" name="dealType" id="dealType_1" value="1">
				
				<input type='hidden' name="distributorName" value="${currentUser.fullname }">
				<input type='hidden' name="distributorId"  value="${currentUser.name }">
				 
				
				<div style="position: relative;height: 100%">


					<table class="form-table">

						<tr>
							<td class="td1">事件标题：</td>
							<td class="td2"><textarea id="incidentTitle"
									class="required" name="title"
									style="white-space:nowrap;height:18px; overflow-y:hidden;max-width:80%;width:80%">${model.title }</textarea>
							</td>
						</tr>
						<tr>
							<td class="td1">事件描述：</td>
							<td class="td2"><textarea id="incidentDescription"
									class="required" style="height:50px;width:80%;"
									name="description">${model.description }</textarea></td>
						</tr>
						<tr>
							<td class="td1">发生时间：</td>
							<td class="td2"><input type="datetime" id="happenTime"
								name="happenTime" class="required"
								value="<fmt:formatDate value="${model.happenTime }" pattern="yyyy-MM-dd HH:mm" />"></td>
						</tr>



					</table>

				</div>
			</form:form>

		</div>
	</div>
</div>


<isperp:buttonList showCloseBtn="true">
	<isperp:processButtons processKey="incidentProcess"
		processId="${model.processId }" businessKey="${model.id }"
		formId="incidentForm"></isperp:processButtons>
</isperp:buttonList>
